package request

import (
	"github.com/gorilla/websocket"
	"time"
)

type ChatReadData struct {
	SeedId uint   `json:"seed_id" binding:"required"`
	Data   string `json:"data" binding:"required"`
}
type ChatWriteData struct {
	UserId uint      `json:"user_id" binding:"required"`
	Data   string    `json:"data" binding:"required"`
	Time   time.Time `json:"time" binding:"required"`
}
type Node struct {
	Conn *websocket.Conn
	Data chan []byte
	Esc  chan bool
}
